package com.jingdianjichi.subject.application.converter;

import com.jingdianjichi.subject.application.dto.SubjectCategoryDTO;
import com.jingdianjichi.subject.eneity.SubjectCategoryBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectCateforyDTOConverter {
    SubjectCateforyDTOConverter INSTANCE = Mappers.getMapper(SubjectCateforyDTOConverter.class);
    SubjectCategoryBO converterDtoToCategoryBo(SubjectCategoryDTO subjectCategoryDTO);
    List<SubjectCategoryDTO> converterBosToDtos(List<SubjectCategoryBO> subjectCategoryBOS);

}
